<template>
    <div class="Rightmenu">
        菜单
        <div class="tag">
            <a-tag v-for="v ,i in Listdata.tag" @click="push({name: 'appTags'})" :key="i"  color="success">{{ v.link_title }}</a-tag>
        </div>

    </div>
</template>
  
<script setup lang="ts">
import http, { format } from "@/utils";
import { RouterLink } from 'vue-router';
import { ArticleType } from "@/types/response/home";
import { onMounted, reactive, toRefs } from "vue";
import { useRouterAction } from "@/utils/router";
const { back, push } = useRouterAction()

const Listdata:{
    tag:any[]
}=reactive({
    tag:<any>null
})

onMounted(()=>{
  getLinkList()
})
let getLinkList = async () => {
  Listdata.tag = await http.linkList();
  console.log("res: ", Listdata.tag);
} 

</script>

<style lang="less">
.Rightmenu{
    .tag{
        display: flex;
        cursor: pointer;
    }
}
</style>